<!DOCTYPE html>
<html style="height: 100%;">
	<head>
		<meta charset="utf-8">
		<title>培训平台</title>
		<meta name="renderer" content="webkit">
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="format-detection" content="telephone=no">
		<link rel="stylesheet" href="../../../layui/css/layui.css" media="all" />
		<link rel="stylesheet" href="../../../css/public.css" media="all" />
		<link rel="stylesheet" href="course-list.css" />
	</head>

	<body class="childrenBody" style="height: 100%;">
		<div class="topsty">
			<div style="display: inline;"><span style="font-size: 15px;"><i class="layui-icon" style="color: #1E9FFF;margin:0 10px 0 30px;">&#xe65b;</i>课程管理</span></div>
			<div class="backtit" style="top: -5px;">
				<div class="back_san"></div>
				<a href="../list/list.html" class="layui-btn layui-btn-normal">返回列表页</a>
			</div>
			<div class="backtit" style="top: -5px;">
				<a class="layui-btn layui-btn-normal edit_btn">编辑</a>
			</div>
			<div class="backtit btnmgn" style="top: -5px;">
				<a class="layui-btn layui-btn-normal del_btn">删除</a>
			</div>
			<div class="backtit btnmgn" style="top: -5px;">
				<a href="../course-add/course-add.html" class="layui-btn layui-btn-normal">新增课程</a>
			</div>
		</div>
		<form class="layui-form">
			<div class="layui-col-md12 searchDiv" style="margin-top: 14px;">
				<div class="layui-inline">
					<div class="layui-input-inline">
						<input type="text" class="layui-input searchVal" id="inptext" placeholder="课程名称" />
					</div>
					<a class="layui-btn layui-btn-normal layui-btn-sm" style="position: relative;top: 0px; left:-4px;" id="search" data-type="reload"><i class="layui-icon">&#xe615;</i></a>
				</div>
				<div class="layui-inline">
					<label class="layui-form-label" style="width: 56px;padding:9px 10px">业务分类</label>
					<div class="layui-input-block" style="position: relative;margin-left:80px">
						<script id="postType" type="text/html">
							<div class="layui-select-title" id="postInput">
								<input type="hidden" id="postTypeId" />
								<input class="layui-input layui-unselect" type="text" style="margin-top: 4px;" id="postTypeName" readonly="readonly" placeholder="请选择">
								<i class="layui-edge"></i>
							</div>
							<dl class="layui-anim layui-anim-upbit" id="postSelect">
								<dd lay-value="" class="layui-select-tips">请选择</dd>
								{{#  layui.each(d, function(index, item){ }}
								    <dd class="postType" id="postType{{item.id}}" onclick="choosePostType('{{item.id}}', '{{item.name}}')">{{item.name}}</dd>
								{{#  }); }}
							</dl>
						</script>
						<div class="layui-unselect layui-form-select" id="postTypeView">
						</div>
					</div>
				</div>
				<div class="layui-inline">
					<label class="layui-form-label" style="width: 56px;padding:9px 10px">课程分类</label>
					<div class="layui-input-block" style="position: relative;margin-left:80px">
						<script id="courseType" type="text/html">
							<div class="layui-select-title" id="courseInput">
								<input type="hidden" id="courseTypeId" />
								<input class="layui-input layui-unselect" type="text" style="margin-top: 4px;" id="courseTypeName" readonly="readonly" placeholder="请选择">
								<i class="layui-edge"></i>
							</div>
							<dl class="layui-anim layui-anim-upbit" id="courseSelect">
								<dd lay-value="" class="layui-select-tips">请选择</dd>
								{{#  layui.each(d, function(index, item){ }}
								    <dd class="courseType" id="courseType{{item.id}}" onclick="chooseCourseType('{{item.id}}', '{{item.name}}')">{{item.name}}</dd>
								{{#  }); }}
							</dl>
						</script>
						<div class="layui-unselect layui-form-select" id="courseTypeView">
						</div>
					</div>
				</div>
				<div class="layui-inline" style="padding: 4px;">
					<button type="button" class="layui-btn layui-btn-normal layui-btn-sm" id="selList">筛选</button>
				</div>
			</div>
			
			<script id="images" type="text/html">
				{{#  layui.each(d.list, function(index, item){ }}
					<li>
						{{#  if(!item.imgId){ }}
						<img src="../../../images/default.png" onclick="showDetail('{{item.id}}')"/>
						{{#  } }}
						{{#  if(item.imgId){ }}
						<img src="{{d.url}}attachment/seekFile/{{item.imgId}}" onclick="showDetail('{{item.id}}')"/>
						{{#  } }}
						<div class="layui-col-md12 dtit" onclick="showDetail('{{item.id}}')">{{item.name}}</div>
						<div class="layui-col-md12">
							<span class="dld downLoad" fileId="{{item.attId}}">下载</span>
							<div class="layui-unselect layui-form-checkbox iptcheckbox" lay-skin="" id="course{{index}}" onclick="selCourse('{{index}}', '{{item.id}}')">
								<i class="layui-icon"></i>
							</div>
						</div>
					</li>
				{{#  }); }}
				{{#  if(d.list.length == 0){ }}
				  	无数据
				{{#  } }} 
			</script>
			<ul class="ulimg" id="imagesView">
			</ul>
			
			<div class="layui-col-md12 pagediv" id="paging"></div>
		</form>
		<script type="text/javascript" src="../../common/jquery-1.11.3.min.js"></script>
		<script type="text/javascript" src="../../common/config.js"></script>
		<script type="text/javascript" src="../../../layui/layui.js"></script>
		<script type="text/javascript" src="course-list.js"></script>
	</body>
</html>